import { reqChange } from "@/api/user";

const state = {
    all:[]
}
const mutations = {
    SET_CHANGE(state,all){
        state.all = all
    }
}
const actions = {
    async getChangeList({commit},all){
        try{
            const result = await reqChange(all)
            commit('SET_CHANGE',result)
        }catch(error){
            alert('请求获取失败')

        }
    },
}
const getters = {}

export default {
    state,mutations,actions,getters
}
